import request from "@/utils/request"

//列表查询
export const queryEmpApi = (name,gender,begin,end,page,pageSize) => 
  request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

export const addEmpApi = (emp) => request.post('/emps',emp)

export const queryEmpList = () => request.get('/emps/list')

export const queryEmpByIdApi = (id) => request.get(`/emps/${id}`)

export const updateEmpApi = (emp) => request.put('/emps',emp)

export const deleteEmpByIdApi = (ids) => request.delete(`/emps?ids=${ids}`)